package com.wiwf.model.magicapi.freemarker.service;

import com.wiwf.model.magicapi.freemarker.model.FtlInfo;
import org.ssssssss.magicapi.core.service.AbstractPathMagicResourceStorage;

public class FtlInfoMagicResourceStorage extends AbstractPathMagicResourceStorage<FtlInfo> {
    @Override
    public String folder() {
        return "freemarker";
    }

    @Override
    public Class<FtlInfo> magicClass() {
        return FtlInfo.class;
    }
    @Override
    public void validate(FtlInfo entity) {
    }
    @Override
    public String buildMappingKey(FtlInfo ftlInfo) {
        return buildMappingKey(ftlInfo, magicResourceService.getGroupPath(ftlInfo.getGroupId()));
    }
}
